I wrote a short ACS script to check the player's health and show it on the screen.
If I play this test wad here (Doom2, MAP01) and let the imps hurt me, somewhere below 50 the HUD's health starts deviating from the health the script finds. This happens almost every time I've tried.